import dva from 'dva'
import createHistory from 'history/createBrowserHistory'
import createLoading from 'dva-loading'
// import globalModel from './models/global'
import router from './router'

import './app.scss'

const app = dva({
  history: createHistory()
})

app.use(createLoading())
// app.model(globalModel)
app.router(router)
app.start('#root')

window._store = app._store

export default app._store
